<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>案例</title>
    <script>
        var i = 1;
        while (i <= 100) {
            console.log('这人今年' + i + '岁了')
            i ++;
        }
        console.log('--------------');

        var j = 1;
        var one = 0;
        while (j <= 100) {
            one += j;
            j ++;
        }
        console.log(one);
        console.log('--------------');

        var z = prompt('你爱我吗？');
        while (z !== '我爱你') {
            z = prompt('你爱我吗？')
        }  
        alert('我也爱你！')
    </script>
</head>
<body>
    
</body>
</html>